package database;

public class User {
	String username;
	String password;
	String email;
	String gender;
	int stage;
	java.util.Date dob;
	int author;
	
	public int getAuthor() {
		return author;
	}

	public void setAuthor(int author) {
		this.author = author;
	}

	public User()
	{
		
	}
	
	public User(String username)
	{
		this.username = username;
	}
	
	public User(String username, String password, String email, String gender, java.sql.Date sqlDate)
	{
		this.username=username;
		this.password=password;
		this.email=email;
		this.gender=gender;
		
		this.dob = new java.util.Date(sqlDate.getTime());
	}
	
	public int getStage() {
		return stage;
	}

	public void setStage(int stage) {
		this.stage = stage;
	}
	
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}

	public java.util.Date getDob() {
		return dob;
	}

	public void setDob(java.sql.Date dob) {
		this.dob = new java.util.Date(dob.getTime());
	}

	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

}
